package com.jsz.peini.bean.sign;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class SignSetExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SignSetExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andSetidIsNull() {
            addCriterion("setId is null");
            return (Criteria) this;
        }

        public Criteria andSetidIsNotNull() {
            addCriterion("setId is not null");
            return (Criteria) this;
        }

        public Criteria andSetidEqualTo(String value) {
            addCriterion("setId =", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidNotEqualTo(String value) {
            addCriterion("setId <>", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidGreaterThan(String value) {
            addCriterion("setId >", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidGreaterThanOrEqualTo(String value) {
            addCriterion("setId >=", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidLessThan(String value) {
            addCriterion("setId <", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidLessThanOrEqualTo(String value) {
            addCriterion("setId <=", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidLike(String value) {
            addCriterion("setId like", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidNotLike(String value) {
            addCriterion("setId not like", value, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidIn(List<String> values) {
            addCriterion("setId in", values, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidNotIn(List<String> values) {
            addCriterion("setId not in", values, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidBetween(String value1, String value2) {
            addCriterion("setId between", value1, value2, "setid");
            return (Criteria) this;
        }

        public Criteria andSetidNotBetween(String value1, String value2) {
            addCriterion("setId not between", value1, value2, "setid");
            return (Criteria) this;
        }

        public Criteria andSetdateIsNull() {
            addCriterion("setDate is null");
            return (Criteria) this;
        }

        public Criteria andSetdateIsNotNull() {
            addCriterion("setDate is not null");
            return (Criteria) this;
        }

        public Criteria andSetdateEqualTo(Date value) {
            addCriterionForJDBCDate("setDate =", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("setDate <>", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateGreaterThan(Date value) {
            addCriterionForJDBCDate("setDate >", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("setDate >=", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateLessThan(Date value) {
            addCriterionForJDBCDate("setDate <", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("setDate <=", value, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateIn(List<Date> values) {
            addCriterionForJDBCDate("setDate in", values, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("setDate not in", values, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("setDate between", value1, value2, "setdate");
            return (Criteria) this;
        }

        public Criteria andSetdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("setDate not between", value1, value2, "setdate");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNull() {
            addCriterion("endDate is null");
            return (Criteria) this;
        }

        public Criteria andEnddateIsNotNull() {
            addCriterion("endDate is not null");
            return (Criteria) this;
        }

        public Criteria andEnddateEqualTo(Date value) {
            addCriterionForJDBCDate("endDate =", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotEqualTo(Date value) {
            addCriterionForJDBCDate("endDate <>", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThan(Date value) {
            addCriterionForJDBCDate("endDate >", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("endDate >=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThan(Date value) {
            addCriterionForJDBCDate("endDate <", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("endDate <=", value, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateIn(List<Date> values) {
            addCriterionForJDBCDate("endDate in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotIn(List<Date> values) {
            addCriterionForJDBCDate("endDate not in", values, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("endDate between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andEnddateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("endDate not between", value1, value2, "enddate");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(String value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(String value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(String value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(String value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(String value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(String value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLike(String value) {
            addCriterion("userId like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotLike(String value) {
            addCriterion("userId not like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<String> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<String> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(String value1, String value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(String value1, String value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andSettypeIsNull() {
            addCriterion("setType is null");
            return (Criteria) this;
        }

        public Criteria andSettypeIsNotNull() {
            addCriterion("setType is not null");
            return (Criteria) this;
        }

        public Criteria andSettypeEqualTo(Integer value) {
            addCriterion("setType =", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeNotEqualTo(Integer value) {
            addCriterion("setType <>", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeGreaterThan(Integer value) {
            addCriterion("setType >", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("setType >=", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeLessThan(Integer value) {
            addCriterion("setType <", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeLessThanOrEqualTo(Integer value) {
            addCriterion("setType <=", value, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeIn(List<Integer> values) {
            addCriterion("setType in", values, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeNotIn(List<Integer> values) {
            addCriterion("setType not in", values, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeBetween(Integer value1, Integer value2) {
            addCriterion("setType between", value1, value2, "settype");
            return (Criteria) this;
        }

        public Criteria andSettypeNotBetween(Integer value1, Integer value2) {
            addCriterion("setType not between", value1, value2, "settype");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysIsNull() {
            addCriterion("successiveDays is null");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysIsNotNull() {
            addCriterion("successiveDays is not null");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysEqualTo(Integer value) {
            addCriterion("successiveDays =", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysNotEqualTo(Integer value) {
            addCriterion("successiveDays <>", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysGreaterThan(Integer value) {
            addCriterion("successiveDays >", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("successiveDays >=", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysLessThan(Integer value) {
            addCriterion("successiveDays <", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysLessThanOrEqualTo(Integer value) {
            addCriterion("successiveDays <=", value, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysIn(List<Integer> values) {
            addCriterion("successiveDays in", values, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysNotIn(List<Integer> values) {
            addCriterion("successiveDays not in", values, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysBetween(Integer value1, Integer value2) {
            addCriterion("successiveDays between", value1, value2, "successivedays");
            return (Criteria) this;
        }

        public Criteria andSuccessivedaysNotBetween(Integer value1, Integer value2) {
            addCriterion("successiveDays not between", value1, value2, "successivedays");
            return (Criteria) this;
        }

        public Criteria andIsreleaseIsNull() {
            addCriterion("isrelease is null");
            return (Criteria) this;
        }

        public Criteria andIsreleaseIsNotNull() {
            addCriterion("isrelease is not null");
            return (Criteria) this;
        }

        public Criteria andIsreleaseEqualTo(Integer value) {
            addCriterion("isrelease =", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseNotEqualTo(Integer value) {
            addCriterion("isrelease <>", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseGreaterThan(Integer value) {
            addCriterion("isrelease >", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseGreaterThanOrEqualTo(Integer value) {
            addCriterion("isrelease >=", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseLessThan(Integer value) {
            addCriterion("isrelease <", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseLessThanOrEqualTo(Integer value) {
            addCriterion("isrelease <=", value, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseIn(List<Integer> values) {
            addCriterion("isrelease in", values, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseNotIn(List<Integer> values) {
            addCriterion("isrelease not in", values, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseBetween(Integer value1, Integer value2) {
            addCriterion("isrelease between", value1, value2, "isrelease");
            return (Criteria) this;
        }

        public Criteria andIsreleaseNotBetween(Integer value1, Integer value2) {
            addCriterion("isrelease not between", value1, value2, "isrelease");
            return (Criteria) this;
        }

        public Criteria andSignLocaIsNull() {
            addCriterion("sign_loca is null");
            return (Criteria) this;
        }

        public Criteria andSignLocaIsNotNull() {
            addCriterion("sign_loca is not null");
            return (Criteria) this;
        }

        public Criteria andSignLocaEqualTo(Integer value) {
            addCriterion("sign_loca =", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaNotEqualTo(Integer value) {
            addCriterion("sign_loca <>", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaGreaterThan(Integer value) {
            addCriterion("sign_loca >", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaGreaterThanOrEqualTo(Integer value) {
            addCriterion("sign_loca >=", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaLessThan(Integer value) {
            addCriterion("sign_loca <", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaLessThanOrEqualTo(Integer value) {
            addCriterion("sign_loca <=", value, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaIn(List<Integer> values) {
            addCriterion("sign_loca in", values, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaNotIn(List<Integer> values) {
            addCriterion("sign_loca not in", values, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaBetween(Integer value1, Integer value2) {
            addCriterion("sign_loca between", value1, value2, "signLoca");
            return (Criteria) this;
        }

        public Criteria andSignLocaNotBetween(Integer value1, Integer value2) {
            addCriterion("sign_loca not between", value1, value2, "signLoca");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}